<template>
    <div>
        <h1>我的值是{{count}} ,电影的总长度{{movieList.length}}</h1>
        <button @click="add">我也加</button>
        <button @click="getMovieListHandel">获取电影列表</button>
        <ul>
            <li v-for="item in movieList" :key="item.tvId">{{item.albumName}}</li>
        </ul>
    </div>
</template>

<script>
import { mapActions, mapMutations, mapState } from 'vuex'
    export default {
        name : "Footer",
        computed:{
            ...mapState("count",["count","movieList"])
        },
        methods:{
            ...mapMutations("count",["add"]),
            ...mapActions("count",["getMovieListHandel"])
        }
    }
</script>

<style scoped>

</style>